Urthman's Sockets Database |
Import and Export Specifications |
Import Specifications | Describes the format necessary for importing data. Generally, files formatted similarly to your existing services file should be ready to import. |
Initialization Listings | Describes the files absorbed the first time the program is executed, and what to do about updated or corrective versions and new RFC releases. |
Export Specifications | Describes what to expect when exporting the database contents. |
Recovering from ... | Describes how to recover the original data in the event that your data gets screwed up. |
Import Specifications: For the most part, the format for importing the /etc/services tables conforms to a typical /etc/services file and the listings in the RFC-1060 and 1700 documents with some minor exceptions. Please read through this material before proceeding since some minor (and harmless) editting might be required.
Importing a file allows users to exchange and share data with common references. If any given record exists, the references are simply updated. Importable files can also be used to mask or delete usage references. After such an exercise, a quick sweep through the database will delete all records whose usage flags are left blank by the import-to-delete process.
Importing | Data | ||||
keyword | port/protocol | <aliases> | <#comment> | <[References]> | |
Normal: | nntp | 119/tcp | usenet | # news-reader | [65,PL4] |
Import Alias: | untp | 119/tcp | # follows nntp for alias | ||
Import Range: | x11 | 6000-6063/tcp | # X Window System | ||
Also -- UDP: | x11 | 6000-6063/udp | # X Window System | ||
TCP and UDP: | x11 | 6000-6063 | # X Window System | ||
No Keyword: | 24/tcp | # any private mail system | |||
Comment: | # appended to the previous comment | ||||
Reserved | Ports | ||||
keyword | port/protocol | <aliases> | <#comment> | <[References]> | |
Reserved: | 0/tcp | # Reserved | |||
Reserved: | 240-245/udp | # Reserved | |||
TCP and UDP: | 240-245 | # Reserved | |||
Unassigned | Ports | (ignored) | |||
keyword | port/protocol | <aliases> | <#comment> | <[References]> | |
Unassigned: | 8/udp | # Unassigned | |||
Unassigned: | 3000-3011/tcp | # Unassigned | |||
TCP and UDP: | 3000-3011 | # Unassigned | |||
Deleting | Ports | (references removed) | |||
keyword | port/protocol | <aliases> | <#comment> | <[References]> | |
Delete Refs: | 3000/tcp | # Delete | |||
Delete Refs: | 3000-3024/udp | # Delete | |||
TCP and UDP: | 3000-3024 | # Delete |
Note: The import function requires that you select at least one category to import to. If the record already exists for that port/protocol, the reference is updated.
You can also use the import function to bulk-delete references to a series of port/protocol assignments. Such an action will result in a subsequent sweep to delete all port/protocol assignments that no longer have any associated category.
Initialization Listings: When the program is started for the very first time, some pre-fabricated data is imported from the 'INIT' subdirectory found within the programs folder. This pre-fabricated data includes RFC-1060, RFC-1700 and Unix Standards data. The program then locates your Windows SERVICES file and imports that also.
The files in the INIT folder have the letter 'a' at the end of the files name to denote a version or release. Any updated or corrective listing files (either provided by John Stanley Enterprises or obtained through other sources) can be placed in the folder and named similarly with a different letter behind them. Each time the program runs it looks for new files in this folder to update the RFC-1060, RFC-1700 or UNIX-STD listings, and to add any new RFC numbered listings that may arise in the future.
If a new RFC concerning assigned numbers is released:
A new category (RXXXX where 'XXXX' is the RFC number) will be created, and the data will be imported with the appropriate references to the new category.
Export Specifications: The export data is always written to <application path>\etc\<filename>
The export format should be pretty much the same as your /etc/services file. The overall format would resemble the format described in the table above except that the unassigned and deleted records will not be included.
The export options include:
In the event of accidents: If at any time the database is hosed beyond reasonable repair - exit the program and delete the 'dat' folder (and all of it's contents) that can be found inside the original program folder. When you go back to the program, the original database and all of the updated information placed there is restored from the data found in the INIT folder. (refer to Initialization Listings for more information)
|
Microsoft, Windows, NT and Visual Basic are registered trademarks of the Microsoft Corporation. |